Speed up insertion of subprocess output on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Wed, 1 Feb 2012 16:51:20 +0000 (18:51 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 1 Feb 2012 16:51:20 +0000 (18:51 +0200)
commit65e2e7ca871ad385624150085de8cb957ebc700a
tree8e014b52213bdc018c2f6b9573648301b46146ce
parent5312b192ae9282b63d3e863d5e2b36ecd920be67
Speed up insertion of subprocess output on MS-Windows.

 src/ralloc.c (resize_bloc, r_alloc_sbrk): Don't call memmove if its
 first 2 arguments are identical.  This makes inserting large
 output from a subprocess an order of magnitude faster on
 MS-Windows, where all sbrk'ed memory is always contiguous.
src/ChangeLog
src/ralloc.c